#include <iostream>

using namespace std;

int main()
{
	int T; cin >> T;
	while(T--)
	{
		int n; cin >> n;
		int cnt = 0;
		for(int i = 1; i <= n; i++)
		{
			cnt += abs(i - (n - i + 1));
		}
		cout << cnt / 2 + 1 << endl;
	}
	
	return 0;
 } 
